﻿@using Webcar.Entitys
@helper CreateWarn(string warn_icon,warn_info[] list)
{
    <div class="div-warning" style="width:375px;height:140px;margin-top:5px">
    <table>
        <tr>
            <td style="width:130px; vertical-align:middle">
                <img src="@warn_icon" style="max-width:130px;max-height:140px" alt="" />
            </td>
            <td style="vertical-align:top;text-align:center;text-overflow:ellipsis;">
                @{
                    foreach (warn_info item in list)
                    {
                        HtmlString title = new HtmlString(item.title.Trim());
                        HtmlString content = new HtmlString(item.short_content.Trim());
                        
                        <div style="text-align:left;font-size:12pt;color:blue;margin-top:3px;text-overflow:ellipsis;">
                           
                            <a href="#" onclick="javascript:parent.addTab('警示信息','Warning/View/@item.id')">@title</a>
                            :@content
                        </div>
                    }
                }
            </td>
        </tr>
    </table>
    
</div>
}
